package com.killer.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * 定义mybatis配置对象
 */
public class Configuration {

    //数据源
    private DataSource dataSource;

    //维护MappedStatement列表 key:namespace.id(即statmentid) value:对应的sql以及相关的配置参数
    private Map<String,MappedStatement> mappedStatementMap=new HashMap<String,MappedStatement>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
